package com.chengliang.bbs.entry;

import com.chengliang.bbs.type.ColumnType;
import com.chengliang.bbs.type.RewardValue;
import com.chengliang.bbs.type.TechnologyType;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 解答（帖子）基本信息
 * @author: chengliang
 * @create: 2019-08-07 22:56
 */
@Data
@Accessors(chain = true)
public class Jie implements Serializable {

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer jieId;

    /**
     * 发帖人
     */
    private User jieUser;

    /**
     * 栏目类型
     */
    private ColumnType columnType;

    /**
     * 技术类型
     */
    private TechnologyType technologyType;

    /**
     * 标题
     */
    private String jieTitle;

    /**
     * 内容
     */
    private String jieContent;

    /**
     * 悬赏经验
     */
    private RewardValue rewardValue;

    /**
     * 创建时间
     */
    private LocalDateTime jieCreateTime;

    /**
     * 解答信息状态
     */
    private JieStatus jieStatus;

}
